﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ThreeTeams.Domain
{
    /// <summary>
    /// 入库单主表实体
    /// </summary>
    public class InboundOrder
    {
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// 仓库ID
        /// </summary>
        [Required]
        public int WarehouseId { get; set; }

        /// <summary>
        /// 入库类型ID
        /// </summary>
        [Required]
        public int InboundTypeId { get; set; }

        /// <summary>
        /// 体积
        /// </summary>
        [Column(TypeName = "decimal(10,2)")]
        public decimal? Volume { get; set; }

        /// <summary>
        /// 预计到达时间
        /// </summary>
        public DateTime? EstimatedArrivalTime { get; set; }

        /// <summary>
        /// 港口出发时间
        /// </summary>
        public DateTime? PortDepartureTime { get; set; }

        /// <summary>
        /// 港口到达时间
        /// </summary>
        public DateTime? PortArrivalTime { get; set; }

        /// <summary>
        /// 参考号1
        /// </summary>
        [StringLength(100)]
        public string? ReferenceNo1 { get; set; }

        /// <summary>
        /// 参考号2
        /// </summary>
        [StringLength(100)]
        public string? ReferenceNo2 { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;
    }
}
